Optimal. Leaf size=89 \[ -\frac {a \tanh ^{-1}\left (\frac {a+b \sin ^2(c+d x)}{\sqrt {a+b} \sqrt {a+b \sin ^4(c+d x)}}\right )}{2 (a+b)^{3/2} d}+\frac {\sec ^2(c+d x) \sqrt {a+b \sin ^4(c+d x)}}{2 (a+b) d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3308, 821, 739,
212} \begin {gather*} \frac {\sec ^2(c+d x) \sqrt {a+b \sin ^4(c+d x)}}{2 d (a+b)}-\frac {a \tanh ^{-1}\left (\frac {a+b \sin ^2(c+d x)}{\sqrt {a+b} \sqrt {a+b \sin ^4(c+d x)}}\right )}{2 d (a+b)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 739
Rule 821
Rule 3308
Rubi steps
\begin {align*} \int \frac {\tan ^3(c+d x)}{\sqrt {a+b \sin ^4(c+d x)}} \, dx &=\frac {\text {Subst}\left (\int \frac {x}{(1-x)^2 \sqrt {a+b x^2}} \, dx,x,\sin ^2(c+d x)\right )}{2 d}\\ &=\frac {\sec ^2(c+d x) \sqrt {a+b \sin ^4(c+d x)}}{2 (a+b) d}-\frac {a \text {Subst}\left (\int \frac {1}{(1-x) \sqrt {a+b x^2}} \, dx,x,\sin ^2(c+d x)\right )}{2 (a+b) d}\\ &=\frac {\sec ^2(c+d x) \sqrt {a+b \sin ^4(c+d x)}}{2 (a+b) d}+\frac {a \text {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\frac {-a-b \sin ^2(c+d x)}{\sqrt {a+b \sin ^4(c+d x)}}\right )}{2 (a+b) d}\\ &=-\frac {a \tanh ^{-1}\left (\frac {a+b \sin ^2(c+d x)}{\sqrt {a+b} \sqrt {a+b \sin ^4(c+d x)}}\right )}{2 (a+b)^{3/2} d}+\frac {\sec ^2(c+d x) \sqrt {a+b \sin ^4(c+d x)}}{2 (a+b) d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 85, normalized size = 0.96 \begin {gather*} -\frac {\frac {a \tanh ^{-1}\left (\frac {a+b \sin ^2(c+d x)}{\sqrt {a+b} \sqrt {a+b \sin ^4(c+d x)}}\right )}{(a+b)^{3/2}}-\frac {\sec ^2(c+d x) \sqrt {a+b \sin ^4(c+d x)}}{a+b}}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.03, size = 0, normalized size = 0.00 \[\int \frac {\tan ^{3}\left (d x +c \right )}{\sqrt {a +b \left (\sin ^{4}\left (d x +c \right )\right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 177 vs.
\(2 (77) = 154\).
time = 0.56, size = 361, normalized size = 4.06 \begin {gather*} \left [\frac {\sqrt {a + b} a \cos \left (d x + c\right )^{2} \log \left (\frac {{\left (a b + 2 \, b^{2}\right )} \cos \left (d x + c\right )^{4} - 4 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + 2 \, \sqrt {b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b} {\left (b \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt {a + b} + 2 \, a^{2} + 4 \, a b + 2 \, b^{2}}{\cos \left (d x + c\right )^{4}}\right ) + 2 \, \sqrt {b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b} {\left (a + b\right )}}{4 \, {\left (a^{2} + 2 \, a b + b^{2}\right )} d \cos \left (d x + c\right )^{2}}, -\frac {a \sqrt {-a - b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b} {\left (b \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt {-a - b}}{{\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right ) \cos \left (d x + c\right )^{2} - \sqrt {b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b} {\left (a + b\right )}}{2 \, {\left (a^{2} + 2 \, a b + b^{2}\right )} d \cos \left (d x + c\right )^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tan ^{3}{\left (c + d x \right )}}{\sqrt {a + b \sin ^{4}{\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {tan}\left (c+d\,x\right )}^3}{\sqrt {b\,{\sin \left (c+d\,x\right )}^4+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________